<div class='definition'><pre>template</pre></div>
<div class='content'>
<p>The <strong><code>&lt;template&gt;</code></strong> <a href="https://developer.mozilla.org/en-us/docs/Web/HTML">HTML</a> element is a mechanism for holding <a href="https://developer.mozilla.org/en-us/docs/Glossary/HTML">HTML</a> that is not to be rendered immediately when a page is loaded but may be instantiated subsequently during runtime using JavaScript.</p>
<p>Think of a template as a content fragment that is being stored for subsequent use in the document. While the parser does process the contents of the <strong><code>&lt;template&gt;</code></strong> element while loading the page, it does so only to ensure that those contents are valid; the element's contents are not rendered, however.</p>
</div><table class='sections'>
<tr><td valign='top' class='section'><p>Supported by:</td><td valign='top'>Chrome 26, Chrome Android 26, Edge 13, Firefox 22, Opera 15, Safari 8, Safari iOS 8</td>
</table>
<div class='content'>By <a href='https://developer.mozilla.org/en-us/docs/web/html/element/template/contributors.txt'>Mozilla Contributors</a>, <a href='https://creativecommons.org/licenses/by-sa/2.5/'>CC BY-SA 2.5</a></div>